<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The CairoContent class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.cairoantialias.html">CairoAntialias</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.cairoextend.html">CairoExtend</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.cairocontent" class="reference">

 <h1 class="title">The CairoContent class</h1>
 

 <div class="partintro"><p class="verinfo">(No version information available, might only be in Git)</p>


  <div class="section" id="cairocontent.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    <strong class="classname">CairoContent</strong> is used to describe the content that a surface will contain,
    whether color information, alpha information (translucence vs. opacity), or both.
   </p>
   <p class="para">
       Note: The large values here are designed to keep <strong class="classname">CairoContent</strong> values distinct from
       <strong class="classname">CairoContent</strong> values so that the implementation can detect the error if users confuse the
       two types.
   </p>
  </div>


  <div class="section" id="cairocontent.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">CairoContent</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 常量 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairocontent.html#cairocontent.constants.color"><var class="varname">COLOR</var></a></var>
     <span class="initializer"> = 4096</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairocontent.html#cairocontent.constants.alpha"><var class="varname">ALPHA</var></a></var>
     <span class="initializer"> = 8192</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.cairocontent.html#cairocontent.constants.color-alpha"><var class="varname">COLOR_ALPHA</var></a></var>
     <span class="initializer"> = 12288</span>
    ;</div>

    
   }</div>


  </div>
  

  <div class="section" id="cairocontent.constants">
   <h2 class="title">预定义常量</h2>
   <dl>


    
     <dt id="cairocontent.constants.color"><strong><code>CairoContent::COLOR</code></strong></dt>

     <dd>

      <p class="para">The surface will hold color content only. </p>
     </dd>

    

    
     <dt id="cairocontent.constants.alpha"><strong><code>CairoContent::ALPHA</code></strong></dt>

     <dd>

      <p class="para">The surface will hold alpha content only. </p>
     </dd>

    

    
     <dt id="cairocontent.constants.color-alpha"><strong><code>CairoContent::COLOR_ALPHA</code></strong></dt>

     <dd>

      <p class="para">The surface will hold color and alpha content.</p>
     </dd>

    

   </dl>

  </div>



 </div>

 

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.cairoantialias.html">CairoAntialias</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="class.cairoextend.html">CairoExtend</a></div>
 <div class="up"><a href="book.cairo.html">Cairo</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
